import {createProject, deleteProject} from '../api/project';

export class Project {
    public id?: number;
    public name: string = '';
    public description?: string;
    public createdBy?: string;
    public ctime?: string;

    constructor(init?: Partial<Project>) {
        Object.assign(this, init);
    }

    doCreate() {
        return createProject(this);
    }

    doUpdate() {
        
    }

    doDelete() {
        return deleteProject(this);
    }
}